Fix a thinko in adjustment animation
authorMatthias Clasen <mclasen@redhat.com>
Mon, 8 Sep 2014 02:45:08 +0000 (22:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 8 Sep 2014 02:45:08 +0000 (22:45 -0400)
The target value is only relevant if we're actually animating.
Don't look at it otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=736178

gtk/gtkadjustment.c

index 2a2f60d163f887d1102337a4ac963688d82e3091..10f43c1b0d612f3e8a97e2b7e520ef3b4839fce0 100644 (file)
@@ -530,7 +530,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
 
   if (animate && priv->duration != 0 && priv->clock != NULL)
     {
-      if (priv->target == value)
+      if (priv->tick_id && priv->target == value)
         return;
 
       priv->source = priv->value;